// g-cache router configuration

package main

import (
	handler "g-cache/biz/handler"
	"github.com/cloudwego/hertz/pkg/app/server"
)

// CustomizedRegister registers customize routers.
func CustomizedRegister(r *server.Hertz) {
	r.GET("/ping", handler.Ping)
	
	// 注册缓存相关路由
	r.GET("/_g-cache/*", handler.CacheHandler)
	r.POST("/_g-cache/*", handler.CacheHandler)
}
